<%@page contentType="text/html;charset=UTF-8"%>
<%@page pageEncoding="UTF-8"%>
<%@ page session="false"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>

<head>
<META  http-equiv="Content-Type"  content="text/html;charset=UTF-8">

<link rel="stylesheet"
	href="<c:url value="/resources/admin/css/layout.css" />"
	type="text/css" media="screen" />
<!--[if lt IE 9]>
	<link rel="stylesheet" href="resources/admin/css/ie.css" type="text/css" media="screen" />
	<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
	<![endif]-->
<script src="<c:url value="/resources/admin/js/jquery-1.5.2.min.js" />"
	type="text/javascript"></script>
<script src="<c:url value="/resources/admin/js/hideshow.js" />"
	type="text/javascript"></script>
<script
	src="<c:url value="/resources/admin/js/jquery.tablesorter.min.js" />"
	type="text/javascript"></script>
<script type="text/javascript"
	src="<c:url value="/resources/admin/js/jquery.equalHeight.js" />"></script>
</head>

<section class="column">
	<article class="module width_full">
		<header>
			<h3 class="tabs_involved">${UIModel.getModelAttribute()}</h3>
			<div class="submit_link">
				<form action="download" method="get">
					<input type="submit" value="XLS">
				</form>
			</div>
		</header>
		<div class="tab_container">
			<div id="tab1" class="tab_content">
				<c:if test="${UIModel.getNumberOfRows() > 0}">
					<table class="tablesorter" cellspacing="0">
						<thead>
							<tr>
								<th></th>
								<c:forEach items="${UIModel.getFieldLabels()}" var="item"
									varStatus="status">
									<th>${UIModel.getFieldLabels()[status.index]}</th>
								</c:forEach>
							</tr>
						</thead>
						<tbody>
							<c:forEach begin="0" end="${UIModel.getNumberOfRows()-1}"
								varStatus="row">
								<tr>
									<td><input type="checkbox"></td>
									<c:forEach begin="0" end="${UIModel.getNumberOfColumns()-1}"
										varStatus="column">
										<td>${UIModel.getValueAt(row.index, column.index)}</td>
									</c:forEach>
								</tr>
							</c:forEach>
						</tbody>
					</table>
				</c:if>
			</div>
		</div>
	</article>
</section>